package com.ruoyi.web.utils;

import java.util.Random;

public class GoogleUtils {

    private static final String KEY = "AIzaSyBR5P9FMGboXNOZBknAWO0MHkWmI_OsTno";

    private String data = "https://maps.googleapis.com/maps/api/distancematrix/json?origins=长春&destinations=吉林&key=" + KEY;

    private String zuobiao = "http://maps.google.com/maps/api/geocode/xml?latlng=39.910093,116.403945&language=zh-CN&sensor=false";

    //TODO获取谷歌地图API距离信息
    public static String returnGoogleMap(){
        //链式构建请求
//        String result2 = HttpRequest.post(url)
//                .header(Header.USER_AGENT, "Hutool http")//头信息，多个头信息多次调用此方法即可
//                .form(paramMap)//表单内容
//                .timeout(20000)//超时，毫秒
//                .execute().body();
//        Console.log(result2);
        int x;
        Random ne=new Random();
        x=ne.nextInt(9999-1000+1)+1000;
        return String.valueOf(x);
    }

}
